home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17084 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.halcyon.com!usenet
  2. From: normanb@halcyon.com (Norm Bryar)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: VC++ 1.52 or 4.0 easy question!! ~please help~~~
  5. Date: Sat, 13 Apr 1996 16:44:36 GMT
  6. Organization: Northwest Nexus Inc.
  7. Message-ID: <4kolk8$fai@news.halcyon.com>
  8. References: <4kmdl5$54l@humerus.whin.net>
  9. NNTP-Posting-Host: blv-pm3-ip22.halcyon.com
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. cmchaff@whin.net (Collin Chaffin) wrote:
  13.  
  14. >I am a VB programmer that is just starting with VC++, so forgive me I'm sure 
  15. >this is an easy one, but I can't find anything on it.  In VB, while in a loop, 
  16. >I can call doevents() to let windows process, how do I accomplish this in VC++ 
  17. >in a do while loop?  Also, how do I create an MFC non modal "Wait" type of 
  18. >DialogBox to cancel the loop.  Thanks ahead of time!!!
  19.  
  20. >cmchaff@whin.net
  21.  
  22. Look at the docs for PeekMessage.  You can create a whole message
  23. pump, TranslateMessage(), DispatchMessage(), etc. within your loop
  24. this way.  Be on guard for reentrancy, however; user tells your app to
  25. start your big loop or other incompatible actions while your already
  26. in your big loop.
  27.  
  28. CDialog::Create() makes a modeless dialog.
  29.  
  30. Good luck.
  31.                     --Norm
  32.  
  33.